<div class="dashboard-container">
  <div class="container">
    <div class="container-left">
      <div class="head">
        <div nz-row nzType="flex" nzJustify="space-between">
          <div nz-col nzSpan="7" class="nav-lists" *ngFor="let item of headLists" [ngStyle]="item.color"
            (click)="routerTo(item.route)">
            <div nz-row>
              <div nz-col nzSpan=12 class="nav-left" [ngStyle]="item.background"></div>
              <div nz-col nzSpan=11 nzOffset=1 class="nav-right">{{item.name}}</div>
            </div>
          </div>
        </div>
      </div>
      <div class="content">
        <div class="body-left">
          <div class="echartsTop">
            <div class="echarts-top">
              <div class="echarts-top-left">
                巡检图表
              </div>
              <div class="echarts-top-right">

              </div>
              <div style="clear: both;"></div>
            </div>
            <div echarts [options]="optionsTop" style="height: 90%;width: 100%;min-height: 230px"></div>
          </div>
          <div class="echartsBottom">
            <div class="echarts-top">
              <div class="echarts-top-left">
                自检图表
              </div>
              <div class="echarts-top-right">

              </div>
              <div style="clear: both;"></div>
            </div>
            <div echarts [options]="optionsBottom" style="height: 90%;width: 100%;min-height: 230px"></div>
          </div>
        </div>
      </div>
    </div>
    <div class="container-right">
      <div class="notice">
        <div class="notice-head">
          <div class="notice-left">
            公告
          </div>
          <div class="notice-right">
            <a (click)="routerTo('notice')">
              详情
              <i nz-icon type="right" theme="outline"></i>
            </a>
          </div>
          <div style="clear: both;"></div>
        </div>
        <div class="notice-body">
          <div class="notice-lists" *ngFor='let item of notices'>
            <div class="notice-lists-left">
              <div class="circular" [ngStyle]="item.style">

              </div>
            </div>
            <div class="notice-lists-right" style="cursor:pointer;" (click)='show(item)'>
              <div class="notice-info">
                {{item.title}}
              </div>
              <div class="notice-time">
                {{item.creationTime|dateTimePipe}}
              </div>
            </div>
            <div style="clear: both;"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>




<!-- 公告详情 -->
<nz-modal [(nzVisible)]="isDetailsVisible" [nzTitle]="modalDetailsTitle" [nzContent]="modalDetailsContent"
  [nzFooter]="null" (nzOnCancel)="handleCancel()" nzWidth=800>
  <ng-template #modalDetailsTitle>
    详情
  </ng-template>

  <ng-template #modalDetailsContent>
    <div class="model">
      <div class="title">
        <b>{{appoint.title}}</b>
      </div>
      <div nz-row class="head">
        <div nz-col nzSpan=5>
          发布人：{{appoint.creatorUserName}}
        </div>
        <div nz-col nzSpan=8>
          发布时间：{{appoint.creationTime|dateTimePipe}}
        </div>
        <!-- <div nz-col nzSpan=5>
          推送人员：{{appoint.title}}
        </div> -->
      </div>
      <div class="content">
        {{appoint.content}}
      </div>
    </div>
  </ng-template>
</nz-modal>